home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gnome-vfs-module-2.0 / libgnomevfs / gnome-vfs-mime.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-01  |  2.4 KB  |  66 lines

  1. /*
  2.  * Copyright (C) 1997-2001 Free Software Foundation
  3.  * Copyright (C) 2000, 2001 Eazel, Inc.
  4.  * All rights reserved.
  5.  *
  6.  * This file is part of the Gnome Library.
  7.  *
  8.  * The Gnome Library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public License as
  10.  * published by the Free Software Foundation; either version 2 of the
  11.  * License, or (at your option) any later version.
  12.  *
  13.  * The Gnome Library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with the Gnome Library; see the file COPYING.LIB.  If not,
  20.  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  21.  * Boston, MA 02111-1307, USA.
  22.  */
  23.  
  24. #ifndef GNOME_VFS_MIME_H
  25. #define GNOME_VFS_MIME_H
  26.  
  27. #include <sys/stat.h>
  28.  
  29. #include <libgnomevfs/gnome-vfs-uri.h>
  30.  
  31. G_BEGIN_DECLS
  32.  
  33. struct stat;
  34.  
  35. #ifndef GNOME_VFS_DISABLE_DEPRECATED
  36. void          gnome_vfs_mime_shutdown                 (void);
  37. #endif
  38.  
  39. const char  *gnome_vfs_mime_type_from_name            (const char        *filename);
  40. const char  *gnome_vfs_mime_type_from_name_or_default            (const char        *filename,
  41.                                  const char        *defaultv);
  42.  
  43. const char  *gnome_vfs_get_mime_type_common            (GnomeVFSURI       *uri);
  44. /* FIXME: This function should be named more clearly, maybe
  45.    to show that it gets the mime type only using the uri information. */
  46. const char  *gnome_vfs_get_mime_type_from_uri            (GnomeVFSURI       *uri);
  47.  
  48. #ifndef GNOME_VFS_DISABLE_DEPRECATED
  49. const char  *gnome_vfs_get_mime_type_from_file_data        (GnomeVFSURI       *uri);
  50. #endif
  51.  
  52. const char * gnome_vfs_get_file_mime_type_fast      (const char        *path,
  53.                              const struct stat *optional_stat_info);
  54. const char  *gnome_vfs_get_file_mime_type           (const char        *path,
  55.                              const struct stat *optional_stat_info,
  56.                              gboolean           suffix_only);
  57. gboolean     gnome_vfs_mime_type_is_supertype       (const char        *mime_type);
  58. char        *gnome_vfs_get_supertype_from_mime_type (const char        *mime_type);
  59.  
  60. void         gnome_vfs_mime_info_cache_reload (const char *dir);
  61. void         gnome_vfs_mime_reload            (void);
  62.  
  63. G_END_DECLS
  64.  
  65. #endif
  66.